package fuck;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.console.MessageConsoleStream;

import fuck.config.ExcelConfig;
import fuck.console.Console;

public class ActionContext {
	private Shell shell;
	private ISelection selection;
	private ExcelConfig config;
	private MessageConsoleStream mcs = Console.getConsole("FUCK");

	private boolean isMavenProject = true;
	
	public Shell getShell() {
		return this.shell;
	}

	public void setShell(Shell shell) {
		this.shell = shell;
	}

	public ISelection getSelection() {
		return this.selection;
	}

	public void setSelection(ISelection selection) {
		this.selection = selection;
	}

	public ExcelConfig getConfig() {
		return this.config;
	}

	public void setConfig(ExcelConfig config) {
		this.config = config;
	}

	public MessageConsoleStream getMcs() {
		return this.mcs;
	}

	public void setMcs(MessageConsoleStream mcs) {
		this.mcs = mcs;
	}

	public boolean isMavenProject() {
		return isMavenProject;
	}

	public void setMavenProject(boolean isMavenProject) {
		this.isMavenProject = isMavenProject;
	}
	
	public String getSrc(){
		return isMavenProject ? "src/main/java" : "src";
	}
}
